import {
  Contains,
  IsDate,
  IsEmail,
  IsFQDN,
  IsInt,
  Length,
  Max,
  Min,
} from 'class-validator';
export class CreatePersonDto {
  name: string;
  @IsInt({
    message(validationArguments) {
      console.log(validationArguments);
      return `${validationArguments.property}必须是数字`;
    },
  })
  age: number;
}
